root_path="/home/www/express"

cd $root_path
git pull origin master
rake assets:precompile
# kill unicorn
ps -ef | grep 'unicorn master' | awk '{if(NR==1){print $2}}' | xargs kill -9
# nginx restart
sudo service nginx restart
# start unicorn
# unicorn -E production -D -c /home/www/express/config/unicorn.rb